import { get, post } from "@/plugin/axios";
export const getUserType = () => get('/api/users/type')
export const AddAndEditUser = (data: userItem) => post('/api/users/addAndEditUser', data)
export interface userItem {
    id?: number;
    name?: string;
    account?: string;
    password?: string;
    type?: number;
}
export const getUserList = () => get('/api/users/getUserList')